﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XeBus.BusinessObject;
using XeBus.DataAccess;
using System.Data;

namespace XeBus.BusinessLogic
{
    public class TramDungBUS
    {
        private TramDungDAO tdDAO = new TramDungDAO();
        public TramDungBUS()
        { 
        }

        public void THEM_TRAM_DUNG(TramDung td)
        {
            tdDAO.THEM_TRAM_DUNG(td);
        }

        public DataTable TramDung()
        {
            return tdDAO.TramDung();
        }

        public DataTable TramDung(string ma_con_duong)
        {
            return tdDAO.TramDung(ma_con_duong);
        }

        public DataTable TramDungTheoID(string id)
        {
            return tdDAO.TramDungTheoID(id);
        }

        public void SUA_TRAM_DUNG(TramDung td)
        {
            tdDAO.SUA_TRAM_DUNG(td);
        }

        public void XOA(string id)
        {
            tdDAO.XOA(id);
        }

        public DataTable Ma_Con_Duong()
        {
            return tdDAO.Ma_Con_Duong();
        }
    }
}
